package com.jnr.huatu.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.jnr.huatu.R;

/**
 * 空指针异常
 * @author：景辉
 * created at 2017/2/14 0014 上午 10:51
 */
public class CatchExceptionLogActivity extends AppCompatActivity {
    private String s;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_catch_exception_log);
        System.out.println(s.equals("hello"));  // s没有进行赋值，所以会出现NullPointException异常
    }
}
